import axios from 'axios'
import $http from '@/utils/httpRequest'

/**
 * 根据类型获取字典值
 * @param dictType
 * @param callBack
 */
export function getDictValueByType (dictType) {
  return axios.get($http.httpUrl('/api/dictValue/selectByDictType'), {
    params: {
      dictType: dictType
    }
  })
}

export const auditStatusDict = {1: '待审核', 2: '审核失败', 3: '正常'}
export const auditStatusList = [{value: 1, name: '待审核'}, {value: 2, name: '审核失败'}, {value: 3, name: '正常'}]

export const examTypeDict = {1: '在线考试', 2: '专题考试'}
export const examTypeList = [{value: 1, name: '在线考试'}, {value: 2, name: '专题考试'}]
